package com.rpc.enumeration;

/**
 * @author ZhangYongLiang
 * @Date 2021/11/9 18:39
 */
public enum ResponseCode {

    SUCCESS(200, "success"),
    METHOD_NOT_FOUND(1001, "method not found");

    Integer code;
    String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
